﻿using System;
using System.Collections.Generic;

namespace ComToolkit.Data
{
    public class AdoParameterCollection : List<AdoParameter>
    {
        private AdoCommand command;
        internal AdoParameterCollection(AdoCommand command)
        {
            this.command = command;
        }

        public void AddWithValue(string name, object value)
        {
            this.Add(command.CreateParameter(name, value));
        }
    }
}
